package com.zzzzzz.core.web;

import java.text.SimpleDateFormat;

import javax.annotation.Resource;

import com.zzzzzz.acct.User;
import com.zzzzzz.acct.UserService;
import com.zzzzzz.core.exception.ZzzzzzException;

public class BaseWeb {

	@Resource
	private UserService userService;

	protected boolean isSignedIn(){
		return userService.isSignedIn();
	}
	
	protected String findCurrentUserId(){
		return userService.findCurrentUserId();
	}
	
	protected User findCurrentUser() throws ZzzzzzException{
		return userService.findCurrentUser();
	}

	
	public SimpleDateFormat format = new SimpleDateFormat("MMM dd, yyyy 'at' hh:mm a");
}
